#pragma once

#include "logicbase/GLLogicBase.h"
#include "common/LSocket.h"
#include "LogicData.h"
#include "scene/SceneManager.h"
#include "scene/LayerManager.h"
#include "scene/CommonUiManager.h"
#include "LogicConfig.h"

class CTLLogicBase : public CGLLogicBase {
public:
	CTLLogicBase ();
	~CTLLogicBase ();

	virtual bool CatchLogic(const ProtocolBase *head, char * data, uint32_t len, void * connect) = 0;
protected:
	LSocket*					m_LogicConnect;
	CSceneManager*				m_SceneManager;
	CLayerManager*				m_LayerManager;
	CILogicPerson*				m_Oneself;
	CLogicData*					m_LogicData;
	CCommonUiManager*			m_CommonUi;
	CLogicConfig*				m_LogicConfig;
};